package com.ren.code.codegen.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
 * @Title: AutoGenCodeConfigruation<br>
 * @Description:  <br>
 * Copyright: eastcom Copyright (C) 2018 <br>
 * @Author <a href="mailto:chenbr@eastcom-sw.com">chenbr</a><br>
 * @version V1.0
 * @creatdate 2021/11/9
 **/
@Configuration
public class AutoGenCodeConfiguration {


    @Bean
    public CodeGenerator getCodeGenerator(){
        CodeGenerator codeGenerator = new CodeGenerator("example.properties");
        codeGenerator
                .registerRender("form")
                .registerRender("repository")
                .registerRender("service")
                .registerRender("controller")
                .generate();

        return codeGenerator;
    }
}
